
public class Swap {
	public static void swap(int a, int b) {
		System.out.println("(a, b) is (" + a + ", " + b + ").");
//		a = a ^ b;
//		b = a ^ b;
//		a = a ^ b;
		a ^= b;
		b ^= a;
		a ^= b;
		System.out.println("(a, b) is (" + a + ", " + b + ").");
	}
	
	public static void main(String[] args) {
		int a = 
				4
				;
		int b = 
				4
				;
		swap(a, b);
	}
}
